import http from "@/utils/request";

export function getProductList(params) {
    return http.request({
        url: "/Product/getProductList",
        method: "get",
        params: params,
    });
}
export function getProductDetail(params) {
    return http.request({
        url: "/Product/getProductDetail",
        method: "get",
        params: params,
    });
}
export function getProductImage(params) {
    return http.request({
        url: "/Product/getProductImage",
        method: "get",
        params: params,
    });
}
export function creatCollection(params) {
    return http.request({
        url: "/Collection/creatCollection",
        method: "post",
        params: params,
    });
}
export function deleteCollection(params) {
    return http.request({
        url: "/Collection/deleteCollection",
        method: "delete",
        params: params,
    });
}